from django.conf.urls import patterns, url



from events.views.eventsofficial_views import * #EventsOfficialView
urlpatterns = patterns('',
    url(
        regex=r'^eventsofficial/archive/$',
        view=EventsOfficialArchiveIndexView.as_view(),
        name='events_eventsofficial_archive_index'
    ),
    url(
        regex=r'^eventsofficial/create/$',
        view=EventsOfficialCreateView.as_view(),
        name='events_eventsofficial_create'
    ),
    url(
        regex=r'^eventsofficial/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/'
               '(?P<pk>\d+?)/$',
        view=EventsOfficialDateDetailView.as_view(),
        name='events_eventsofficial_date_detail'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/$',
        view=EventsOfficialDayArchiveView.as_view(),
        name='events_eventsofficial_day_archive'
    ),
    url(
        regex=r'^eventsofficial/(?P<pk>\d+?)/delete/$',
        view=EventsOfficialDeleteView.as_view(),
        name='events_eventsofficial_delete'
    ),
    url(
        regex=r'^eventsofficial/(?P<pk>\d+?)/$',
        view=EventsOfficialDetailView.as_view(),
        name='events_eventsofficial_detail'
    ),
    url(
        regex=r'^eventsofficial/$',
        view=EventsOfficialListView.as_view(),
        name='events_eventsofficial_list'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/$',
        view=EventsOfficialMonthArchiveView.as_view(),
        name='events_eventsofficial_month_archive'
    ),
    url(
        regex=r'^eventsofficial/today/$',
        view=EventsOfficialTodayArchiveView.as_view(),
        name='events_eventsofficial_today_archive'
    ),
    url(
        regex=r'^eventsofficial/(?P<pk>\d+?)/update/$',
        view=EventsOfficialUpdateView.as_view(),
        name='events_eventsofficial_update'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               'week/(?P<week>\d{1,2})/$',
        view=EventsOfficialWeekArchiveView.as_view(),
        name='events_eventsofficial_week_archive'
    ),
    url(
        regex=r'^eventsofficial/archive/(?P<year>\d{4})/$',
        view=EventsOfficialYearArchiveView.as_view(),
        name='events_eventsofficial_year_archive'
    ),
)


from events.views.userpersonal_views import *
urlpatterns += patterns('',
    url(
        regex=r'^userpersonal/archive/$',
        view=UserPersonalArchiveIndexView.as_view(),
        name='events_userpersonal_archive_index'
    ),
    url(
        regex=r'^userpersonal/create/$',
        view=UserPersonalCreateView.as_view(),
        name='events_userpersonal_create'
    ),
    url(
        regex=r'^userpersonal/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/'
               '(?P<pk>\d+?)/$',
        view=UserPersonalDateDetailView.as_view(),
        name='events_userpersonal_date_detail'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               '(?P<day>\d{1,2})/$',
        view=UserPersonalDayArchiveView.as_view(),
        name='events_userpersonal_day_archive'
    ),
    url(
        regex=r'^userpersonal/(?P<pk>\d+?)/delete/$',
        view=UserPersonalDeleteView.as_view(),
        name='events_userpersonal_delete'
    ),
    url(
        regex=r'^userpersonal/(?P<pk>\d+?)/$',
        view=UserPersonalDetailView.as_view(),
        name='events_userpersonal_detail'
    ),
    url(
        regex=r'^userpersonal/$',
        view=UserPersonalListView.as_view(),
        name='events_userpersonal_list'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/$',
        view=UserPersonalMonthArchiveView.as_view(),
        name='events_userpersonal_month_archive'
    ),
    url(
        regex=r'^userpersonal/today/$',
        view=UserPersonalTodayArchiveView.as_view(),
        name='events_userpersonal_today_archive'
    ),
    url(
        regex=r'^userpersonal/(?P<pk>\d+?)/update/$',
        view=UserPersonalUpdateView.as_view(),
        name='events_userpersonal_update'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/'
               '(?P<month>\d{1,2})/'
               'week/(?P<week>\d{1,2})/$',
        view=UserPersonalWeekArchiveView.as_view(),
        name='events_userpersonal_week_archive'
    ),
    url(
        regex=r'^userpersonal/archive/(?P<year>\d{4})/$',
        view=UserPersonalYearArchiveView.as_view(),
        name='events_userpersonal_year_archive'
    ),
)
